profit maximization in monopoly calculation